package com.nali.dal.statement.function.formatter;

import java.util.List;

import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.nali.dal.statement.function.EmptyDataHandler;
import com.nali.dal.statement.function.FunctionException;

@Component
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class Rownum extends EmptyDataHandler<Integer> {
	private int i=0;

	@Override
	public Integer handle(List<Object> argList) throws FunctionException {
		return i++;
	}
}

